const prod = require(`@/static/config/application-prod.json`)
const dev = require(`@/static/config/application-dev.json`)
let server = ''
//后台服务器
if(process.env.NODE_ENV === 'development'){
	server = dev['SERVER']
}else{
	// #ifdef H5
	server = window["PROD-WEB-SERVER"]
	// #endif
	// #ifndef H5
	server = prod['SERVER']
	// #endif
}

export {
	server
}

let serverimag = ''
//图片服务器
if(process.env.NODE_ENV === 'development'){
	serverimag = dev['IMAGE-SERVER']
}else{
	// #ifdef H5
	serverimag = window["PROD-WEB-IMAGE-SERVER"]
	// #endif
	// #ifndef H5
	serverimag = prod['IMAGE-SERVER']
	// #endif
}

export {
	serverimag
}

//配置项
let application = {}
if(process.env.NODE_ENV === 'development'){
	application = dev['APPLICATION']
}else{
	// #ifdef H5
	application = window["APPLICATION"]
	// #endif
	// #ifndef H5
	application = prod['APPLICATION']
	// #endif
}
application = application || {}
export {
	application
}
